package jmine.tec.web.pages.app;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import jmine.tec.utils.Tuple;
import jmine.tec.web.wicket.security.WicketSecurityServletFilter;

/**
 * Filtro de segurança para testes.
 * 
 * @author lundberg
 */
public class MockSecurityFilter extends WicketSecurityServletFilter {

    private List<Tuple<String, String>> parameterMapping = new ArrayList<Tuple<String, String>>();

    /**
     * {@inheritDoc}
     */
    @Override
    protected Collection<Tuple<String, String>> getParameterMapping(String entityName) {
        return this.parameterMapping;
    }

    /**
     * @param parameterMapping the parameterMapping to set
     */
    public void setParameterMapping(List<Tuple<String, String>> parameterMapping) {
        this.parameterMapping = parameterMapping;
    }
}
